package com.yanti.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yanti.domain.ResponseResult;
import com.yanti.domain.entity.ExperienceCircle;
import com.yanti.domain.vo.ExperienceCircleVo;
import com.yanti.mapper.ExperienceCircleMapper;
import com.yanti.service.ExperienceCircleService;
import com.yanti.util.BeanCopyUtils;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * (ExperienceCircle)表服务实现类
 *
 * @author luo
 * @since 2024-12-03 21:04:31
 */
@Service("experienceCircleService")
public class ExperienceCircleServiceImpl extends ServiceImpl<ExperienceCircleMapper, ExperienceCircle> implements ExperienceCircleService {

    @Override
    public ResponseResult getAllExperienceCircle() {
        List<ExperienceCircle> experienceCircles = list();
        List<ExperienceCircleVo> experienceCircleVos = BeanCopyUtils.copyBeanList(experienceCircles, ExperienceCircleVo.class);
        return ResponseResult.okResult(experienceCircleVos);
    }
}

